﻿// -----------------------------------------------------------------------
// <copyright file="History_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class History_BLL
    {
        public static List< History> GetAll()
        {
            return  History_DAL.GetAll();
        }
        public static List<History> GetAllByEquipment(int equipID)
        {
            return History_DAL.GetAllByEquipment(equipID);
        }
        public static bool Insert( History  History)
        {
            return  History_DAL.Insert( History);
        }
        public static bool Update( History  History)
        {
            return  History_DAL.Update( History);
        }
        public static bool Delete( History  History)
        {
            return  History_DAL.Delete( History);
        }
        public static List< History> GetDataByEquipmentID(int id)
        {
            return  History_DAL.GetDataByEquipmentID(id);
        }
        public static List<History> FilterHistory(int equipmentId, int workOrderId, int jobDescriptionId, string reportBy, DateTime From, DateTime To, int ShipID)
        {
            return History_DAL.FilterHistory(equipmentId, workOrderId, jobDescriptionId, reportBy, From, To, ShipID);
        }

    }
}
